package ModelImplementation

import "time"

type SalesReceipt struct {
	itsSaleDate time.Time
	itsAmount float64
}

func salesReceipt(saleDate time.Time, amount float64) SalesReceipt{
	return SalesReceipt{itsSaleDate: saleDate,itsAmount: amount}
}

func (sr* SalesReceipt)GetAmount() float64 {
	return sr.itsAmount
}

func (sr* SalesReceipt)GetSaleDate() time.Time{
	return sr.itsSaleDate
}